#include <stdio.h>

int main() {
    int weekDay;

    // 提示用户输入星期数
    printf("请输入星期数（1-7）：");
    scanf("%d", &weekDay);

    // 使用 switch 语句
    switch (weekDay) {
        case 1:
            printf("周一：跑步\n");
            break;
        case 2:
            printf("周二：游泳\n");
            break;
        case 3:
            printf("周三：慢走\n");
            break;
        case 4:
            printf("周四：动感单车\n");
            break;
        case 5:
            printf("周五：拳击\n");
            break;
        case 6:
            printf("周六：爬山\n");
            break;
        case 7:
            printf("周日：好好吃一顿\n");
            break;
        default:
            printf("输入错误，请输入1-7之间的整数。\n");
            return 1;
    }

    // 使用 if 语句
    if (weekDay == 1) {
        printf("周一：跑步\n");
    } else if (weekDay == 2) {
        printf("周二：游泳\n");
    } else if (weekDay == 3) {
        printf("周三：慢走\n");
    } else if (weekDay == 4) {
        printf("周四：动感单车\n");
    } else if (weekDay == 5) {
        printf("周五：拳击\n");
    } else if (weekDay == 6) {
        printf("周六：爬山\n");
    } else if (weekDay == 7) {
        printf("周日：好好吃一顿\n");
    } else {
        printf("输入错误，请输入1-7之间的整数。\n");
    }

    return 0;
}
